
package za.ac.cput.peter.ObjectOrientatedConcepts.Inheritance.Conf;

import org.springframework.beans.factory.annotation.Configurable;
import org.springframework.context.annotation.Bean;
import za.ac.cput.peter.ObjectOrientatedConcepts.Inheritance.Impl.ChildDNA;
import za.ac.cput.peter.ObjectOrientatedConcepts.Inheritance.Impl.ParentDNA;

@Configurable
public class AppConfig 
{
    @Bean
    public ParentDNA parent(){ return new ChildDNA(); }
}